import request from '@/common/request.js'

// 获取 banner( 轮播图 ) 数据
const banner = (data) => {
	return request({
		url: "/banner",
		method: "GET",
		data
	})
}

// 推荐歌单
const personalized = (data) => {
	return request({
		url: "/personalized",
		method: "GET",
		data
	})
}

// 推荐新音乐
const newsong = () => {
	return request({
		url: "/personalized/newsong",
		method: "GET"
	})
}

//最新专辑
const newest = () => {
	return request({
		url: "/album/newest",
		method: "GET"
	})
}

//新歌速递
const song = (data) => {
	return request({
		url: "/top/song",
		method: "GET",
		data
	})
}

export {
	banner,
	personalized,
	newsong,
	newest,
	song
}
